home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6058 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.1 KB

  1. Path: news.cstone.net!usenet
  2. From: scottv@cstone.net (Scott)
  3. Newsgroups: comp.lang.c++
  4. Subject: Q: Creating OLE Custom Control Enumerated Property, how?
  5. Date: 10 Feb 1996 22:58:27 GMT
  6. Organization: Cornerstone Networks - Pure Internet!
  7. Message-ID: <4fj7uj$umi@dot.cstone.net>
  8. NNTP-Posting-Host: dialin8.cstone.net
  9. Mime-Version: 1.0
  10. Content-Type: Text/Plain; charset=US-ASCII
  11. X-Newsreader: WinVN 0.99.7
  12.  
  13.     I've been creating an OLE custom control in VC++ 4.0 and have run 
  14. into a snag.  I want to create a property that has an enumerated value list 
  15. like that of the BorderStyle property.  Languages like VB 4.0 show the 
  16. enumerated values in a combo box to select from in design time.
  17.     I've used OnGetDisplayString to override the property as an integer 
  18. to display "1 - Example" in the property list, but I want to enumerate the 
  19. values and override the display.  Anyone know how to do this - I would think 
  20. this should be fairly simple, but I've missed it in the documentation or 
  21. misunderstood it.
  22.     Please email me direct if possible; scottv@cstone.net - THANKS!!!
  23.  
  24.             Thanks,
  25.             N. Scott Vann
  26.             Software Developer
  27.  
  28.